<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<a href="fun()">百度</a>
	</body>
	<script>
		function fun(){
			location = "https://www.baidu.com";
		}
	</script>
</html>
